package operation.visitor.obj;

import operation.visitor.abs.AbsPerson;
import operation.visitor.abs.IAction;

public class Man extends AbsPerson {

    public Man(String name) {
        super(name + "(man)");
    }

    @Override
    public void accept(IAction action) {
        // 接收到访问者后
        // 访问者操作当前元素
        action.giveResult(this);
    }
    
}